using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Utility;
using ENTITIES;
using BUS;

public partial class admin_SuaTrangThai : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_sua_Click(object sender, EventArgs e)
    {
        try
        {
            
            int id = int.Parse(Request.QueryString["ID"]);
           
            TBTrangThai trangthai = TrangThaiBUS.GetByID(id);
            trangthai.tentt = txt_TenTT.Text;

            TrangThaiBUS.Update(trangthai);
          
        }
        catch (Exception ex)
        {
        }
        Response.Redirect("~/admin/DanhSachTrangThai.aspx");
        Response.Redirect(Request.RawUrl);
    }
}
